//
//  BWStatus.swift
//  weibo
//
//  Created by libowen on 16/5/24.
//  Copyright © 2016年 libowen. All rights reserved.
//

import UIKit

class BWStatus: NSObject {
    var id: Int64 = 0
    var text: String?
    var created_at: String?
    var source: String?
    var user: BWUser?
    
    init(dict: [String : AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
    override func setValue(value: AnyObject?, forKey key: String) {
        if key == "user" {
            if let dict = value as? [String : AnyObject] {
                user = BWUser(dict: dict)
            }
            return
        }
        super.setValue(value, forKey: key)
    }
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
}




















